#include "threadPool.hpp"
#include <memory>
#include "task.hpp"
using namespace threadPoolModule;

int main()
{
    ENABLE_CONSOLE_LOG();
    std::unique_ptr<threadPool<task_t>> tp = std::make_unique<threadPool<task_t>>();

    tp->start();

    int cnt = 10;
    while (cnt--)
    {
        tp->equeue(push);
        sleep(1);
    }

    
    
    tp->stop();
    
    tp->wait();
}